<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Nivel
 *
 * @author dliebel
 */
namespace Application\Model;
use Zend\Db\Adapter\Adapter;
use Application\Utils\GenericManager;

class Nivel extends GenericManager{

    private $id;
    private $descripcion;

    public function __construct($nameTable ,Adapter $adapter = null, $databaseSchema = null, ResultSet $selectResultPrototype = null)
    {
        return parent::__construct($nameTable, $adapter, $databaseSchema,$selectResultPrototype);
    }
    
    public function exchangeArray($data) {
        $this->id = (!empty($data['id'])) ? $data['id'] : null;
        $this->descripcion = (!empty($data['descripcion'])) ? $data['descripcion'] : null;
    }

    
    public function getId() {
        return $this->id;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function getDescripcion() {
        return $this->descripcion;
    }

    public function setDescripcion($descripcion) {
        $this->descripcion = $descripcion;
    }


}

